package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author zy
 * @since 2022-04-15
 */
@TableName("t_sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键
     */
    @TableId(value = "user_key", type = IdType.INPUT)
    private String userKey;

    /**
     * 注册机构
     */
    private String orgKey;

    /**
     * 登录名
     */
    private String loginName;

    /**
     * 登录密码（加密）
     */
    private String password;

    /**
     * 密码错误次数（大于3次输入验证码）
     */
    private Integer errorCount;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 拼音
     */
    private String py;

    /**
     * 性别（公用字典获取）
     */
    private String sexKey;

    /**
     * 性别说明
     */
    @TableField(exist = false)
    private String sexName;

    /**
     * 出生日期
     */
    private String birthday;

    /**
     * 身份证号
     */
    private String idNumber;

    /**
     * 电话
     */
    private String phoneNumber;

    /**
     * 民族（公用字典获取）
     */
    private String nation;

    /**
     * 学历（公用字典获取）
     */
    private String education;

    /**
     * 职称（公用字典获取）
     */
    private String titleKey;

    /**
     * 职务主键
     */
    private String positionKey;

    /**
     * 默认科室
     */
    private String defaultDeptKey;

    /**
     * 邮箱
     */
    private String eMail;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 累计登录次数
     */
    private Integer loginNum;

    /**
     * 今日登录次数
     */
    private Integer loginNumToday;

    /**
     * 最后登录时间
     */
    private String lastTime;

    /**
     * 最后登录ip
     */
    private String lastIp;

    /**
     * 0：未启用；1：启用
     */
    private Integer activeFlg;

    /**
     * 医师证书号
     */
    private String doctorServiceNo;

    /**
     * 医师编码
     */
    private String doctorCertificateNo;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 用户图片
     */
    private String userPic;

    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }
    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }
    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(Integer errorCount) {
        this.errorCount = errorCount;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }
    public String getSexKey() {
        return sexKey;
    }

    public void setSexKey(String sexKey) {
        this.sexKey = sexKey;
    }
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }
    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }
    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }
    public String getTitleKey() {
        return titleKey;
    }

    public void setTitleKey(String titleKey) {
        this.titleKey = titleKey;
    }
    public String getPositionKey() {
        return positionKey;
    }

    public void setPositionKey(String positionKey) {
        this.positionKey = positionKey;
    }
    public String getDefaultDeptKey() {
        return defaultDeptKey;
    }

    public void setDefaultDeptKey(String defaultDeptKey) {
        this.defaultDeptKey = defaultDeptKey;
    }
    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }
    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }
    public Integer getActiveFlg() {
        return activeFlg;
    }

    public void setActiveFlg(Integer activeFlg) {
        this.activeFlg = activeFlg;
    }
    public String getDoctorServiceNo() {
        return doctorServiceNo;
    }

    public void setDoctorServiceNo(String doctorServiceNo) {
        this.doctorServiceNo = doctorServiceNo;
    }
    public String getDoctorCertificateNo() {
        return doctorCertificateNo;
    }

    public void setDoctorCertificateNo(String doctorCertificateNo) {
        this.doctorCertificateNo = doctorCertificateNo;
    }
    public String getUserPic() {
        return userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    public String getSexName() {
        return sexName;
    }

    public void setSexName(String sexName) {
        this.sexName = sexName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(Integer loginNum) {
        this.loginNum = loginNum;
    }

    public Integer getLoginNumToday() {
        return loginNumToday;
    }

    public void setLoginNumToday(Integer loginNumToday) {
        this.loginNumToday = loginNumToday;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "userKey='" + userKey + '\'' +
                ", orgKey='" + orgKey + '\'' +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", errorCount=" + errorCount +
                ", userName='" + userName + '\'' +
                ", py='" + py + '\'' +
                ", sexKey='" + sexKey + '\'' +
                ", sexName='" + sexName + '\'' +
                ", birthday='" + birthday + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", nation='" + nation + '\'' +
                ", education='" + education + '\'' +
                ", titleKey='" + titleKey + '\'' +
                ", positionKey='" + positionKey + '\'' +
                ", defaultDeptKey='" + defaultDeptKey + '\'' +
                ", eMail='" + eMail + '\'' +
                ", introduction='" + introduction + '\'' +
                ", loginNum=" + loginNum +
                ", loginNumToday=" + loginNumToday +
                ", lastTime='" + lastTime + '\'' +
                ", lastIp='" + lastIp + '\'' +
                ", activeFlg=" + activeFlg +
                ", doctorServiceNo='" + doctorServiceNo + '\'' +
                ", doctorCertificateNo='" + doctorCertificateNo + '\'' +
                ", avatar='" + avatar + '\'' +
                ", userPic='" + userPic + '\'' +
                '}';
    }
}
